//
//  MSTradeCommentTableVC.m
//  SocietySale
//
//  Created by Mike on 16/11/15.
//  Copyright © 2016年 Mike. All rights reserved.
//

#import "MSTradeCommentTableVC.h"

@interface MSTradeCommentTableVC ()

@end

@implementation MSTradeCommentTableVC

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *identifier = @"InfoCell";
    MSTradeCommentCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    if (cell==nil) {
        cell = [[MSTradeCommentCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:identifier];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    cell.textLabel.text = self.dataArray[indexPath.row];
    cell.textLabel.textColor = kDarkGrayColor;
    cell.textLabel.font = HeitiFont(14);
    NSString *state = self.stateArray[indexPath.row];
    if ([state isEqualToString:@"YES"]) {
        cell.imageView.image = [UIImage imageNamed:@"singleselected"];
    }
    else{
        cell.imageView.image = [UIImage imageNamed:@"singleselect"];
    }
    return cell;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 35;
}

@end
